
package com.zsrt.day20170505.ch04;


import org.junit.Test;

public class QueueTest {

	
	@Test
	public void testName() throws Exception {
		
		Node head = new Node();
		
		Queue queue = new Queue(head);
		
		Node node1 = new Node(1);
		Node node2 = new Node(2);
		Node node3 = new Node(3);
		queue.push(node1);
		queue.push(node2);
		queue.push(node3);
		
		queue.printQueue();
		
		queue.pop();
		queue.pop();
		queue.printQueue();
		
		queue.updateNode(node2, 5);
		queue.printQueue();
		
	}
}
